# Makefile for demo project

CC = gcc
CFLAGS = -I  -pthread -ldl

# Source files
SRC_MAIN = main.c sqlite3.c
SRC_SHELL = shell.c sqlite3.c

# Executables
TARGET_MAIN = main
TARGET_SHELL = sqliteShell

# Build rules
all: $(TARGET_MAIN) $(TARGET_SHELL)

$(TARGET_MAIN): $(SRC_MAIN)
	$(CC) -o $@ $^ $(CFLAGS)

$(TARGET_SHELL): $(SRC_SHELL)
	$(CC) -o $@ $^ $(CFLAGS)

clean:
	rm -f $(TARGET_MAIN) $(TARGET_SHELL)
